/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MyEngine;

/**
 * Class which implementrs tree(graph) representation. It allows creating
 * hierarchy tree, adding/deleting nodes and provides searching algorithm
 * @author Macias
 */
/**
 * Klasa Tree<T> - drzewo
 *  @author Macias based on http://kodatnik.blogspot.com/2010/02/drzewo-ogolna-implementacja.html
 */
class MyTree {
 // referencja do węzła będącego korzeniem
 private Node root;
 private long nodeNr;

 public MyTree() {
  // brak korzenia
  root = null;
 }

 public MyTree(Node root) {
  // ustawiamy korzeń
  this.root = root;
  nodeNr=0;
 }
}



